<template>
  <div>
    <div>这是login登陆页面孙子组件</div>
    <div v-bind="$attrs"></div>
    <button @click="grandParents" >子传父与祖父组件</button>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  mounted() {
    this.$emit("grandParent","我是一个好人")
  },
  methods: {
    grandParents() {
      // t
    }
  }
}
</script>